import { cookieUtil } from "./storage";

const TokenKey = "vite_admin_token";

export function getToken() {
  return cookieUtil.get(TokenKey);
}

export function setToken(token: string) {
  return cookieUtil.set(TokenKey, token);
}

export function removeToken() {
  return cookieUtil.remove(TokenKey);
}
